//
//  LFHttpclient.h
//  LocalLife
//
//  Created by 李立达 on 15/11/23.
//  Copyright © 2015年 heima11. All rights reserved.
//

#import <AFNetworking/AFNetworking.h>

typedef void(^sucessloadData)(id JSON);
typedef void(^errorloadData)(NSError *error);

@interface LFHttpclient : AFHTTPSessionManager

+(id)shareInstense;
+(void)httpGetWithUrl:(NSString *)url WithPamter:(NSDictionary *)pamter WithSucessBlock:(sucessloadData)sucess WitherrorBlock:(errorloadData)errorload;

+(void)httpGetHomeWithUrl:(NSString *)url WithPamter:(NSDictionary *)pamter
          WithSucessBlock:(sucessloadData)sucess WitherrorBlock:(errorloadData)faild;

@end
